package com.foreknow.demo12;

/**
 * Created by foreknow on 2021/7/25.
 */
public class Book {
    private int bid;// 图书的编号
    private String bname;// 图书的名称
    private double price;// 单价
    private int storage;//数量

    public Book() {

    }

    public Book(int bid,String bname,double price,int storage) {
        this.bid = bid;
        this.bname = bname;
        this.price = price;
        this.storage = storage;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStorage() {
        return storage;
    }

    public void setStorage(int storage) {
        this.storage = storage;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", bname='" + bname + '\'' +
                ", price=" + price +
                ", storage=" + storage +
                '}';
    }
}
